<?php
namespace Custom\Model;
use Think\Model;
class AdminModel extends Model{    
    protected $_auto = array(        
        array('password','mypassword',3,'callback')    
    );    
    protected function mypassword($data){        
        return password($data);    
    }
}